#pragma once

#include "Meta.h"

class Folder : public Meta
{
public:
    Folder();
    Folder(uint32_t id);

    void setName(const QString& name) { _name = name; }
    QString name() { return _name; }

    virtual QSize sizeHint() const override;
    virtual void paint(QPaintDevice* pd, const QRect& rect) const override;

private:
    QString _name;
};

using SharedFolder = QSharedPointer<Folder>;

Q_DECLARE_METATYPE(SharedFolder);